﻿using Mt.Site.Core.CustomConfigurations;
using System.Threading.Tasks;

namespace Mt.Site.Application.FrontUploadConfigure
{
    public class FrontUploadConfigureAppService: MtSiteFrontendAppServiceBase,IFrontUploadConfigureAppService
    {
        private readonly ICustomConfigManager _customConfigManager;

        public FrontUploadConfigureAppService(ICustomConfigManager customConfigManager)
        {
            _customConfigManager = customConfigManager;
        }

        public async Task<string> GetCommonFrontConfigure(string customKey)
        {
            return await _customConfigManager.GetConfigStrAsync(customKey);
        }
    }
}
